<?php
    require('inc/db.php');

    $result = mysql_query("SELECT * FROM post WHERE id = ".$_GET['id']);

    while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
    echo $row['title'];
    }
    mysql_free_result($result);
?>